In article <387f2261@news.povray.org>, "Tom Melly"
<tom### [at] tomandluforce9couk> wrote:
> Hi, has anyone got any general advice/links/macros/whatever on collision
> detection in POV?
What do you want to detect collisions of? If it is simply two spheres,
use something like
#if(vlength(CenterA - CenterB)<(RadiusA + RadiusB))
// spheres are colliding
#else
// spheres are not colliding
#end
The math is pretty simple for many other objects. I don't know of any
macros for this.
--
Chris Huff
e-mail: chr### [at] yahoocom
Web page: http://chrishuff.dhs.org/
Post a reply to this message
|